package xcmg.device.dao.entity.delivery;

import java.util.Objects;

public class DeliveryReceiptLinkDO {
    private String deliveryBillId;

    private String deliveryBillNo;

    private String purchaseBillId;

    private String purchaseBillNo;

    private String saleBillId;

    private String saleBillNo;

    private String deliveryNoteId;

    private String deliveryNoteNo;

    private String remark;

    private String billType;

    private String bId;

    /**
     * 出库状态
     */
    private String status;

    public String getDeliveryBillId() {
        return deliveryBillId;
    }

    public void setDeliveryBillId(String deliveryBillId) {
        this.deliveryBillId = deliveryBillId == null ? null : deliveryBillId.trim();
    }

    public String getDeliveryBillNo() {
        return deliveryBillNo;
    }

    public void setDeliveryBillNo(String deliveryBillNo) {
        this.deliveryBillNo = deliveryBillNo == null ? null : deliveryBillNo.trim();
    }

    public String getPurchaseBillId() {
        return purchaseBillId;
    }

    public void setPurchaseBillId(String purchaseBillId) {
        this.purchaseBillId = purchaseBillId == null ? null : purchaseBillId.trim();
    }

    public String getPurchaseBillNo() {
        return purchaseBillNo;
    }

    public void setPurchaseBillNo(String purchaseBillNo) {
        this.purchaseBillNo = purchaseBillNo == null ? null : purchaseBillNo.trim();
    }

    public String getSaleBillId() {
        return saleBillId;
    }

    public void setSaleBillId(String saleBillId) {
        this.saleBillId = saleBillId == null ? null : saleBillId.trim();
    }

    public String getSaleBillNo() {
        return saleBillNo;
    }

    public void setSaleBillNo(String saleBillNo) {
        this.saleBillNo = saleBillNo == null ? null : saleBillNo.trim();
    }

    public String getDeliveryNoteId() {
        return deliveryNoteId;
    }

    public void setDeliveryNoteId(String deliveryNoteId) {
        this.deliveryNoteId = deliveryNoteId == null ? null : deliveryNoteId.trim();
    }

    public String getDeliveryNoteNo() {
        return deliveryNoteNo;
    }

    public void setDeliveryNoteNo(String deliveryNoteNo) {
        this.deliveryNoteNo = deliveryNoteNo == null ? null : deliveryNoteNo.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getBillType() {
        return billType;
    }

    public void setBillType(String billType) {
        this.billType = billType;
    }

    public String getbId() {
        return bId;
    }

    public void setbId(String bId) {
        this.bId = bId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        DeliveryReceiptLinkDO that = (DeliveryReceiptLinkDO) o;
        return Objects.equals(deliveryBillId, that.deliveryBillId) &&
                Objects.equals(deliveryNoteId, that.deliveryNoteId);
    }

    @Override
    public int hashCode() {

        return Objects.hash(deliveryBillId, deliveryNoteId);
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
